package android.money.data;

import java.util.ArrayList;
import java.util.List;

public class Card {
	public static final int TYPE_MASTER = 0;
	public static final int TYPE_VISA = 1;
	public static final String NAME_MASTER = "Master Card";
	public static final String NAME_VISA = "Visa";
	private int type;
	public Card(){
		
	}
	public Card(int type){
		this.type = type;
	}
	public static List<String> getTypeList(){
	     List<String> typeList = new ArrayList<String>();
	     typeList.add(new Card(TYPE_MASTER).toString());
	     typeList.add(new Card(TYPE_VISA).toString());
	     return typeList;
	}
	public int getType(){
		return type;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		switch(type){
		case TYPE_MASTER: return NAME_MASTER;
		case TYPE_VISA: return NAME_VISA;
		}
		return "";
	}
	
}
